package com.google.code.swingonfire.utility.date;

import java.text.DateFormatSymbols;
import java.util.Calendar;
import java.util.Locale;

public class DateRenderInfoSecondPart extends AbstractDateRenderInfoPart
{

    public DateRenderInfoSecondPart(int length)
    {
        super(length);
    }
    
    /**
     * {@inheritDoc}
     */
    @Override
    protected String getValue(Calendar calendar, DateFormatSymbols dateFormatSymbols, Locale locale)
    {
        return formatNumber(calendar.get(Calendar.SECOND));
    }
    
}
